package com.woniuxy.common.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CenterOrderManageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CenterOrderManageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCenterOrderidIsNull() {
            addCriterion("center_orderid is null");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidIsNotNull() {
            addCriterion("center_orderid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidEqualTo(String value) {
            addCriterion("center_orderid =", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidNotEqualTo(String value) {
            addCriterion("center_orderid <>", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidGreaterThan(String value) {
            addCriterion("center_orderid >", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidGreaterThanOrEqualTo(String value) {
            addCriterion("center_orderid >=", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidLessThan(String value) {
            addCriterion("center_orderid <", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidLessThanOrEqualTo(String value) {
            addCriterion("center_orderid <=", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidLike(String value) {
            addCriterion("center_orderid like", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidNotLike(String value) {
            addCriterion("center_orderid not like", value, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidIn(List<String> values) {
            addCriterion("center_orderid in", values, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidNotIn(List<String> values) {
            addCriterion("center_orderid not in", values, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidBetween(String value1, String value2) {
            addCriterion("center_orderid between", value1, value2, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderidNotBetween(String value1, String value2) {
            addCriterion("center_orderid not between", value1, value2, "centerOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidIsNull() {
            addCriterion("center_merchant_orderid is null");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidIsNotNull() {
            addCriterion("center_merchant_orderid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidEqualTo(String value) {
            addCriterion("center_merchant_orderid =", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidNotEqualTo(String value) {
            addCriterion("center_merchant_orderid <>", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidGreaterThan(String value) {
            addCriterion("center_merchant_orderid >", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidGreaterThanOrEqualTo(String value) {
            addCriterion("center_merchant_orderid >=", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidLessThan(String value) {
            addCriterion("center_merchant_orderid <", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidLessThanOrEqualTo(String value) {
            addCriterion("center_merchant_orderid <=", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidLike(String value) {
            addCriterion("center_merchant_orderid like", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidNotLike(String value) {
            addCriterion("center_merchant_orderid not like", value, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidIn(List<String> values) {
            addCriterion("center_merchant_orderid in", values, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidNotIn(List<String> values) {
            addCriterion("center_merchant_orderid not in", values, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidBetween(String value1, String value2) {
            addCriterion("center_merchant_orderid between", value1, value2, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantOrderidNotBetween(String value1, String value2) {
            addCriterion("center_merchant_orderid not between", value1, value2, "centerMerchantOrderid");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusIsNull() {
            addCriterion("center_order_status is null");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusIsNotNull() {
            addCriterion("center_order_status is not null");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusEqualTo(Byte value) {
            addCriterion("center_order_status =", value, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusNotEqualTo(Byte value) {
            addCriterion("center_order_status <>", value, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusGreaterThan(Byte value) {
            addCriterion("center_order_status >", value, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("center_order_status >=", value, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusLessThan(Byte value) {
            addCriterion("center_order_status <", value, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusLessThanOrEqualTo(Byte value) {
            addCriterion("center_order_status <=", value, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusIn(List<Byte> values) {
            addCriterion("center_order_status in", values, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusNotIn(List<Byte> values) {
            addCriterion("center_order_status not in", values, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusBetween(Byte value1, Byte value2) {
            addCriterion("center_order_status between", value1, value2, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("center_order_status not between", value1, value2, "centerOrderStatus");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeIsNull() {
            addCriterion("center_order_modify_time is null");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeIsNotNull() {
            addCriterion("center_order_modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeEqualTo(Date value) {
            addCriterion("center_order_modify_time =", value, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeNotEqualTo(Date value) {
            addCriterion("center_order_modify_time <>", value, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeGreaterThan(Date value) {
            addCriterion("center_order_modify_time >", value, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("center_order_modify_time >=", value, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeLessThan(Date value) {
            addCriterion("center_order_modify_time <", value, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("center_order_modify_time <=", value, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeIn(List<Date> values) {
            addCriterion("center_order_modify_time in", values, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeNotIn(List<Date> values) {
            addCriterion("center_order_modify_time not in", values, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeBetween(Date value1, Date value2) {
            addCriterion("center_order_modify_time between", value1, value2, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterOrderModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("center_order_modify_time not between", value1, value2, "centerOrderModifyTime");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridIsNull() {
            addCriterion("center_merchant_userid is null");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridIsNotNull() {
            addCriterion("center_merchant_userid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridEqualTo(String value) {
            addCriterion("center_merchant_userid =", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridNotEqualTo(String value) {
            addCriterion("center_merchant_userid <>", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridGreaterThan(String value) {
            addCriterion("center_merchant_userid >", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridGreaterThanOrEqualTo(String value) {
            addCriterion("center_merchant_userid >=", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridLessThan(String value) {
            addCriterion("center_merchant_userid <", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridLessThanOrEqualTo(String value) {
            addCriterion("center_merchant_userid <=", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridLike(String value) {
            addCriterion("center_merchant_userid like", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridNotLike(String value) {
            addCriterion("center_merchant_userid not like", value, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridIn(List<String> values) {
            addCriterion("center_merchant_userid in", values, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridNotIn(List<String> values) {
            addCriterion("center_merchant_userid not in", values, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridBetween(String value1, String value2) {
            addCriterion("center_merchant_userid between", value1, value2, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterMerchantUseridNotBetween(String value1, String value2) {
            addCriterion("center_merchant_userid not between", value1, value2, "centerMerchantUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridIsNull() {
            addCriterion("center_customer_userid is null");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridIsNotNull() {
            addCriterion("center_customer_userid is not null");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridEqualTo(String value) {
            addCriterion("center_customer_userid =", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridNotEqualTo(String value) {
            addCriterion("center_customer_userid <>", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridGreaterThan(String value) {
            addCriterion("center_customer_userid >", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridGreaterThanOrEqualTo(String value) {
            addCriterion("center_customer_userid >=", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridLessThan(String value) {
            addCriterion("center_customer_userid <", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridLessThanOrEqualTo(String value) {
            addCriterion("center_customer_userid <=", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridLike(String value) {
            addCriterion("center_customer_userid like", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridNotLike(String value) {
            addCriterion("center_customer_userid not like", value, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridIn(List<String> values) {
            addCriterion("center_customer_userid in", values, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridNotIn(List<String> values) {
            addCriterion("center_customer_userid not in", values, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridBetween(String value1, String value2) {
            addCriterion("center_customer_userid between", value1, value2, "centerCustomerUserid");
            return (Criteria) this;
        }

        public Criteria andCenterCustomerUseridNotBetween(String value1, String value2) {
            addCriterion("center_customer_userid not between", value1, value2, "centerCustomerUserid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}